package org.shagin.jfin.sheet;

import java.util.ArrayList;
import java.util.List;

public class SheetRowSubTotal extends SheetRow {

	private List<SheetRow> rows = null;

	public SheetRowSubTotal() {
		super();
	}

	public List<SheetRow> getRows() {
		if (null == rows)
			rows = new ArrayList<SheetRow>();
		return rows;
	}

	public void addRow(SheetRow row) {
		getRows().add(row);
	}

	public SheetRowTotalPercent createPercentRow(SheetColumnLabel col) {
		return new SheetRowTotalPercent(this, col);
	}

	protected void setRows(List<SheetRow> rows) {
		this.rows = rows;
	}
}
